package d1203;

import java.util.Scanner;

public class Demo05 {
    public static void main(String[] args) {

        System.out.println("请输入本学期所学的科目，科目之间用，分割");
        Scanner sc1 = new Scanner(System.in);
        String[] arr = sc1.nextLine().split("，");
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i]+" ");
        }
        System.out.println();
        for (int i = 0; i < arr.length; i++) {
            System.out.println("请输入该科目成绩");
            Scanner scanner = new Scanner(System.in);
            System.out.println(arr[i] + "=" + scanner.nextInt());
        }




    }
}
